﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.Team.Comm
{
    /// <summary>
    /// APIPaging类用于表示API调用的结果，包含分页信息
    /// </summary>
    /// <typeparam name="T">实体</typeparam>
    public class APIPaging<T> : APIResult<T> where T : class
    {
        /// <summary>
        /// 总页
        /// </summary>
        public int TotalCount { get; set; } = 0;
        /// <summary>
        /// 总行
        /// </summary>
        public int TotalPage { get; set; } = 0;
        /// <summary>
        /// 分页数据
        /// </summary>
        public List<T> Data { get; set; }
        //public APIResult()
        //{
        //    Code = 200;
        //    Message = "操作成功";
        //    Data = null;
        //}
    }
}
